# coding: utf-8
from common import BaseAPI, Timestamp


class SvgAPI(BaseAPI):
    @classmethod
    def getCoursewareTree(cls):
        """
        获取课件树
        :return:
        """
        url = '/sias/Svc/GetCoursewareTree'
        new = Timestamp.now_ms()
        params = {
            'id': '60964f3cd60180000149395c',
            'sign': 'fca1e4835558a4367c006b72d2a135cd',
            'timestamp': new,
            '_': new,
            '_t': new
        }
        response = cls.get(url, params=params)
        return response.json()
